<!DOCTYPE html>
<html>
<head>
  <title>新闻快报</title>

  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/4.1.0/css/bootstrap.min.css">
  <script src="https://cdn.staticfile.org/jquery/3.2.1/jquery.min.js"></script>
  <script src="https://cdn.staticfile.org/popper.js/1.12.5/umd/popper.min.js"></script>
  <script src="https://cdn.staticfile.org/twitter-bootstrap/4.1.0/js/bootstrap.min.js"></script>
  <script src="https://cdn.staticfile.org/vue/2.4.2/vue.min.js"></script>
<script src="https://cdn.staticfile.org/vue-resource/1.5.1/vue-resource.min.js"></script>

<!--   <script type="text/javascript" src="{{asset('js/app.js')}}"></script> -->
</head>
<body>

  <!-- banner -->
  <div class="jumbotron text-center">
    <h1>新闻快报</h1>
    <p>Jenny xu<a href="login">新闻系统登陆</a></p> 
  </div>
  <div class="container">
    <div class="row">
   


      <div class="col-sm-8" style="padding-bottom:  20px;height: 250px;">
       <div class="card">

        <div class="card-header"> <h3>新闻</h3></div>
        <div class="card-body"> 
          <table>
            <tbody>
              @foreach ($newsinfo as $newsinfo)
              <tr> 
              <td>{{$loop->index+1}}</td> 
                <td><a href="{{url('/view/')}}/{{$newsinfo->id}}"> {{ $newsinfo->title }}</a></td>     
              </tr> 
              @endforeach
            </tbody>
          </table>
        </div>
      </div>
    </div>


<div class="col-sm-4" style="padding-bottom:  20px; height: 250px;">
       <div class="card">

        <div class="card-header"> <h3>栏目</h3></div>

        <div class="card-body"> 
          <table>
            <tbody>
              @foreach ($list as $list)
              <tr>  
                <td>{{$loop->index+1}}</td> 
                <td><a href="{{url('/list/')}}/{{$list->id}}"> {{ $list->classname }}</a></td>     
              </tr> 
              @endforeach
            </tbody>
          </table>
        </div>
      </div>
    </div>

   
<!-- 和国际化 -->


<!-- 和国际化 -->


  </div>
</div>
<!-- <script>
 function data() {
    $.ajax({
        type : 'post',
        url  : '../https/Controllers/newController.php',
        data : {
        },
        headers: {
            'X-CSRF-TOKEN': $('meta[name="_token"]').attr('content'),
        },
        dataType : "json",
        //在请求之前调用的函数
        beforeSend:function(){
            alert('即将调用')
        },
        //成功返回之后调用的函数
        success: function(e){
            alert('调用成功')
        },
        // //调用执行后调用的函数
        // complete: function(XMLHttpRequest, textStatus){
        //     alert(XMLHttpRequest.responseText);
        //     alert(textStatus);
        //     //HideLoading();
        // },
        //调用出错执行的函数
        error: function(){
            //请求出错处理
            alert('调用接口出错了');
        }
    });
}
data();
</script> -->
</body>
</html>